<ui:composition template="/templates/layout.xhtml" xmlns="http://www.w3.org/1999/xhtml"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:c="http://java.sun.com/jstl/core"
     xmlns:fmt="http://java.sun.com/jstl/fmt"
     xmlns:x="http://java.sun.com/jstl/xml"
     xmlns:fn="http://java.sun.com/jstl/functions"
     xmlns:a4j="http://richfaces.org/a4j"
     xmlns:rich="http://richfaces.org/rich"
     xmlns:gape="http://componentes.gape/component/gape">
     
	<ui:define name="titulo">
		<h:outputText value="#{msg.applicationName} - #{msg.titleTelaInsertStrategicPerspective}" />
	</ui:define>

	<ui:define name="menu">
		<c:choose>
			<c:when test="${strategy.strategyChosen}">
				<ui:include src="/menu/menuStrategicPlan.xhtml" />					
			</c:when>						
		</c:choose>		
	</ui:define>
	
	<ui:define name="conteudo">
		<h:panelGrid columns="2" footerClass="FormLinhaBotoes" headerClass="pathway" columnClasses="label,field">
 				<h:outputText value="#{msg.nameLabel}" />
 				<h:inputText value="#{strategicPerspective.name}" size="100"/>
 				
 				<h:outputText value="#{msg.descripionLabel}" />
 				<h:inputTextarea value="#{strategicPerspective.description}" rows="5" cols="40"/>
 				
 				<h:outputText value="#{msg.acronymLabel}" />
 				<h:inputText value="#{strategicPerspective.acronym}" size="5"/>
 				
 				<h:outputText value="#{msg.organizationLabel}" />
 				<h:outputText value="#{strategy.nomeOrganizacao}" rendered="#{strategicPerspective.organizationSelected}"/>
 				<h:selectOneMenu value="#{strategicPerspective.idOrganization}" rendered="#{!strategicPerspective.organizationSelected}">
 					<f:selectItems value="#{strategicPerspective.listOrganization}"/>
 				</h:selectOneMenu>
		</h:panelGrid>
		
		<h:panelGrid columns="1">						
			<rich:messages layout="list" style="color: Red; align: Center; font-size: 15px"/>						
		</h:panelGrid>
	</ui:define>	

	<ui:define name="menuTela">
		<ui:include src="menu.xhtml" />
	</ui:define>
	
	<ui:define name="menuNavegacaoBack">
		<gape:navigationBack mbean="#{'strategicPerspective'}" metodo="#{'redirecionaBack'}" />
	</ui:define>
	
	<ui:define name="menuNavegacaoForward">
		<gape:navigationForward disabled="#{true}"/>
	</ui:define>

	<ui:define name="includePanels"></ui:define>
</ui:composition>